package database.work;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class WelcomeScreen extends Activity
{
	private TextView viewDB, viewDESC;

	@Override
	public void onCreate(Bundle SavedInstanceState)
	{
		super.onCreate(SavedInstanceState);
		setContentView(R.layout.welcome);
		
		viewDB = (TextView)findViewById(R.id.viewDB);
		viewDB.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View v) 
			{
				Intent i = new Intent(WelcomeScreen.this, NotesDatabaseMain.class);
				startActivity(i);
			}
			
		});
		
		viewDESC = (TextView)findViewById(R.id.viewDESCDB);
		
		viewDESC.setVisibility(View.VISIBLE);
		
		viewDESC.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View arg0) 
			{
				Intent desc = new Intent(WelcomeScreen.this, DescDBMain.class);
				startActivity(desc);
			}
			
		});
	}
}
